package com.carleasoft.mps.forum.business.answer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carleasoft.mps.forum.business.answer.bean.ForumData;
import com.carleasoft.mps.forum.business.answer.bean.po.ForumDataPo;
import com.carleasoft.mps.forum.business.answer.bean.vo.ForumUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zang
 * @since 2023-05-09
 */
@Mapper
public interface ForumDataMapper extends BaseMapper<ForumData> {

    Page<ForumData> pageForumData(Page page, @Param("po") ForumDataPo forumDataPo);
    Page<ForumData> bisPageForumData(Page page,@Param("po") ForumDataPo forumDataPo);

    ForumData detailForumData(@Param("articleCode")String articleCode);

    Page<ForumData> selForumTab(Page page, @Param("po")ForumDataPo forumDataPo);

    ForumUserVo selForumUser(@Param("userCode")String userCode);

}
